Skip to content

No longer map zh_TW language to zh language code in dev translations. - #1442

Open
Mati365 wants to merge 14 commits into
masterfrom
ck/10480
Open

No longer map zh_TW language to zh language code in dev translations.#1442
Mati365 wants to merge 14 commits into
masterfrom
ck/10480

Conversation

@Mati365

@Mati365 Mati365 commented Jul 21, 2026

Copy link
Copy Markdown
Member

🚀 Summary

No longer map zh_TW language to zh language code in dev translations.


📌 Related issues

@Mati365
Mati365 marked this pull request as ready for review July 21, 2026 11:38
@Mati365
Mati365 requested a review from a team July 21, 2026 11:38
Comment thread packages/ckeditor5-dev-translations/tests/utils/getlanguages.js Outdated
Comment thread packages/ckeditor5-dev-translations/tests/utils/getlanguages.js Outdated
Comment thread packages/ckeditor5-dev-translations/tests/utils/getlanguages.js
Comment thread packages/ckeditor5-dev-translations/lib/utils/getlanguages.js Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e4ad808. Configure here.

'ms', // Malay
'ne_NP', // Nepali (Nepal)
'no', // Norwegian
'nb', // Norwegian Bokmål

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Norwegian Bokmål locale removed

Medium Severity

nb (Norwegian Bokmål) was dropped from SUPPORTED_LOCALES. That change is unrelated to the Chinese locale remapping in this PR, so translation tooling will stop treating Bokmål as a supported language and will no longer create or maintain nb.po files.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e4ad808. Configure here.

@przemyslaw-zan przemyslaw-zan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title is invalid. It's about the filename, not the "language code", and omits zh_CN → zh-hans and the nb removal. Suggested: Map zh_CN/zh_TW to zh-hans/zh-hant filenames and drop the nb locale.

- https://github.com/ckeditor/ckeditor5-commercial/issues/10480
---

The `languageCode` returned for the `zh_CN` and `zh_TW` locales is no longer the ambiguous `zh` for both. It is now `zh-Hans` for `zh_CN` (Simplified Chinese) and `zh-Hant` for `zh_TW` (Traditional Chinese).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog does not match the code. languageCode was not updated, only the filenames. The zh_CN and zh_TW locales now emit script-based translation files instead of the previous region/ambiguous names. (languageCode is unchanged — it stays zh, since it only drives plural-form selection.)

'ms', // Malay
'ne_NP', // Nepali (Nepal)
'no', // Norwegian
'nb', // Norwegian Bokmål

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removal deserves a changelog entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants